package com.jilujia.web;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStartedEvent;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class ContextStartedEventsListener implements ApplicationListener<ContextStartedEvent> {
	
	@Transactional
	public void onApplicationEvent(ContextStartedEvent event) {
		//do something
	}
}
